import ajax from './index'

export function order_list(condition) {
  if (!condition) {
    condition = {
      pageNum: 1,
      pageSize: 20
    }
  }
  return ajax({
    url: "/backend/order/list",
    method: "post",
    data: condition
  });
}
export function order_detail(id) {
  return ajax({
    url: "/backend/order/detail" + "/" + id,
    method: "get"
  });
}
export function order_settle_list(condition) {
  if (!condition) {
    condition = {
      pageNum: 1,
      pageSize: 20
    }
  }
  return ajax({
    url: "/backend/order/settle_list",
    method: "get",
    params: condition
  });
}
export function order_settle_list_export(condition) {
  return ajax({
    url: "/backend/order/settle_list_export",
    method: "get",
    params: condition
  });
}

export function logistics_query(condition) {
  return ajax({
    url: "/backend/order/logistics_query",
    method: "get",
    params: condition
  });
}

export function logistics_alibaba_query(condition) {
  return ajax({
    url: "/backend/order/logistics_alibaba_query",
    method: "get",
    params: condition
  });
}
export function order_profit_list(condition) {
  if (!condition) {
    condition = {
      pageNum: 1,
      pageSize: 20
    }
  }
  return ajax({
    url: "/backend/order/order_profit_list",
    method: "get",
    params: condition
  });
}
export function order_profit_list_export(condition) {
  return ajax({
    url: "/backend/order/order_profit_list_export",
    method: "get",
    params: condition
  });
}
export function order_export(condition) {
  return ajax({
    url: "/backend/order/export",
    method: "post",
    data: condition
  });
}
